package com.st.controller;


import com.st.base.BaseResult;
import com.st.po.GoodsInsertPo;
import com.st.service.ShopsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("Shops")
@Tag(name="购物车",description = "这里包含了购物车所有的方法")
public class ShopsController {

    @Resource
    private ShopsService shopsService;

    


    @RequestMapping(path = "ShopsInsert",method = RequestMethod.POST)
    public BaseResult ShopsInsert(@RequestBody GoodsInsertPo goodsInsertPo){
      boolean insert = shopsService.Insert(goodsInsertPo);
      if (insert){
          return BaseResult.ok("插入成功");
      }
        return BaseResult.error("插入失败");
    }
}
